package data.db
{
	import data.type.NpcFunctionType;

	public class NpcDB
	{
		public function NpcDB()
		{
		}
		public var id:int;
		
		public var name:String;
		
		public var function_type:String;  // 功能点.一个NPC可能包含多个功能， 1：任务 2：副本
		
		public var talk:String; // 默认对话
		
		public var function_task:String;// 挂载的任务ID，用英文逗号分隔	
		
		public var function_duplicate:String;// 挂载的副本ID，用英文逗号分隔	
		
		public var body_id:int;  // 角色资源body表id
		
		public var version:int;   // 版本号
		
		public function get functionType():String{
			var types:Array = function_type.split(",");
			var funs:String = "";
			for each(var type:int in types){
				funs += NpcFunctionType.getFunctionName(type) + ',';
			}
			return funs;
		}
		
	}
}